package com.bdqn.t330.ch03.service;

import com.bdqn.t330.ch03.entity.User;
import com.bdqn.t330.ch03.mapper.UserMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class UserServiceImp implements UserService {

    @Resource
    UserMapper userMapper;

    @Override
    public User getUserByIdBiz(Long id) {
        return userMapper.get(id);
    }

    @Override
    public void deleteById(Long id) throws Exception {
        userMapper.delete(id);
    }
}
